/-app ...
/-app/tests ...
TestCase.ts
TestPage.ts
Application.ts
/-boot
/-imports
/-storage
/-tests
/-typings
stringUtils.ts
teapo.html
1
module teapo.app.tests {
2
 
3
  export class TestCase {
4
 
5
    state = ko.observable(TestCase.State.NotStarted);
6
    runtime = ko.observable<number>(null);
7
 
8
    constructor() { 
9
    }
10
 
11
    start() { 
12
      if (this.state() !== TestCase.State.NotStarted)
13
        throw new Error('Test case already started (' + TestCase.State[this.state()] + ').');
14
      
15
      
16
    }
17
  }
18
 
19
  export module TestCase {
20
 
21
    export enum State {
22
      NotStarted,
23
      Running,
24
      Succeeded,
25
      Failed
26
    }
27
 
28
  }
29
 
30
}